package com.scn.base.dao.impl;

import java.util.List;
import java.util.Map;

import com.scn.base.dao.SysRolePowerDao;
import com.scn.base.domain.RolePowerVO;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class SysRolePowerDaoImpl extends SqlMapClientDaoSupport implements SysRolePowerDao {

	public void insertRolePower(RolePowerVO rolepower) {
		getSqlMapClientTemplate().insert("insertRolePower",rolepower);
	}
	
	public void updateRolePower(Map srid) {
		getSqlMapClientTemplate().update("updateRolePower",srid);
	}

	public void deleteRolePowerByRole(int srid) {
		getSqlMapClientTemplate().delete("deleteRolePowerByRole",srid);
	}

	public List<RolePowerVO> selectRolePowerBySrIdList(int srid) {
		
		return getSqlMapClientTemplate().queryForList("selectRolePowerBySrId",srid);
	}
	

}
